home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 31
/
Volume 31 - JOGO DISK .iso
/
Games
/
christmas_attack.swf
/
scripts
/
DefineSprite_170_swarm3
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
612b
|
37 lines
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
_X = Math.random() * 440 + 20;
_Y = -42;
gone = 0;
sc = 0;
this.onEnterFrame = function()
{
if(gone == 0)
{
if(_root.pause == 0)
{
sc++;
if(sc == 5)
{
en.en.gotoAndStop(2);
}
if(_Y < 402)
{
_Y = _Y + (Math.random() * 6 + 4);
}
else
{
gotoAndStop(2);
}
}
xp = _X + en._x;
yp = _Y + en._y;
}
else
{
stop();
}
};
stop();